package com.lin.missyou.repository;

import com.lin.missyou.model.Category;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author gcq
 * @Create 2021-10-24
 */
public interface CategoryRepository extends JpaRepository<Category, Long>   {


    List<Category> findAllByIsRootOrderByIndexAsc(Boolean isRoot);
}